---
title: bud.relPath
description: Get a path relative to the project's base directory.
tags:
  - helpers
  - filesystem
---

Get a path relative to the project's base directory.

## Usage

Given an absolute path to a directory or file, **bud.relPath** returns a path relative to the project's base directory.

```ts title=bud.config.ts
bud.relPath(`/code/my-project/src`)
// => `src`
```
